<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./css/mui.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            touch-action: none;
        }
    </style>
    <style>
    </style>
</head>

<body>
    <div id="refreshContainer" class="mui-content mui-scroll-wrapper">
        <div class="mui-scroll">
            <!--数据列表-->
            <ul class="mui-table-view mui-table-view-chevron">
                <div style="height:1500px;background:pink;" id="ceshi"></div>
            </ul>
        </div>
    </div>
    <script src="./js/mui.js"></script>
    <script>
        mui.init({
            pullRefresh: {
                container: "#refreshContainer",//下拉刷新容器标识，querySelector能定位的css选择器均可，比如：id、.class等
                up: {
                    height: 50,//可选.默认50.触发上拉加载拖动距离
                    auto: false,//可选,默认false.自动上拉加载一次
                    contentrefresh: "正在加载...",//可选，正在加载状态时，上拉加载控件上显示的标题内容
                    contentnomore: '没有更多数据了',//可选，请求完毕若没有更多数据时显示的提醒内容；
                    callback: function(){
                        var that = this;
                        setTimeout(function(){
                            that.endPullupToRefresh();
                            // that.endPullupToRefresh(true);//true表示结束
                        },2000)
                    } //必选，刷新函数，根据具体业务来编写，比如通过ajax从服务器获取新数据；
    
            }}
        });
    </script>
</body>
</html>